package com.example.messagemodule;

import android.graphics.Color;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.yilijk.base.utils.ALog;

import java.util.List;

public class ForbiddenAdapter extends BaseQuickAdapter<String, BaseViewHolder> {
    public ForbiddenAdapter(@Nullable List<String> data) {
        super(R.layout.item_attention, data);
    }


    @Override
    protected void convert(BaseViewHolder helper, String item) {
        ALog.i(TAG, "convert: item"+item);
        helper.setTextColor(R.id.item_attentionList, Color.parseColor("#FF7100"));
        helper.setBackgroundRes(R.id.item_attentionList,R.drawable.item_forbidden_bg);
        helper.setText(R.id.item_attentionList, item);
    }
}
